package com.cskaoyan.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/05/03 16:35
 */
@RestController
public class HelloController {


    @RequestMapping("hello/{name}")
    public String hello(@PathVariable("name") String name) {
        if ("songge".equals(name)) {
            int i = 1 / 0;
        }
        return "hello";
    }
}
